﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Instalador
{
    public partial class Padre : Form
    {
        int hijo = 0;
        public static String PATH_LOCAL_PROGRAM_FILE;
        public static String PATH_LOCAL_INSTALADOR;
        public static String PATH_LOCAL_TEMP_INSTALADOR;
        public static String FTP_PASSWORD = "Pp123456B";
        public static String FTP_USUARIO = "bassart.com.ar";
        public static String PATH_WEB_INSTALADOR_32 = "ftp://ftp.bassart.com.ar/htdocs/Instalador_32";

        public Padre()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (this.panelContenedor.Controls.Count > 0)
                this.panelContenedor.Controls.RemoveAt(0);
            hijo++;
            Form fh = null;
            switch (hijo)
            {

                case 1:
                        fh = new Hijo1();
                        break;
                case 2:
                        fh = new Hijo2();
                        break;
                case 3:
                        fh = new Hijo3();
                        break;
            }
            fh.TopLevel = false;
            fh.FormBorderStyle = FormBorderStyle.None;
            fh.Dock = DockStyle.Fill;
            this.panelContenedor.Controls.Add(fh);
            this.panelContenedor.Tag = fh;
            fh.Show();
        }

        private void btn_salir_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button1_Click_1(object sender, EventArgs e)
        {
            if (this.panelContenedor.Controls.Count > 0)
                this.panelContenedor.Controls.RemoveAt(0);
            hijo++;
            Form fh = null;
                    fh = new Hijo3();
            fh.TopLevel = false;
            fh.FormBorderStyle = FormBorderStyle.None;
            fh.Dock = DockStyle.Fill;
            this.panelContenedor.Controls.Add(fh);
            this.panelContenedor.Tag = fh;
            fh.Show();
        }
    }
}
